package com.zc.app.sys.dao.mapper;

import com.zc.app.sys.dao.peer.SystemUserRolePeer;
import com.zc.app.sys.dao.peer.SystemUserRolePeerExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface SystemUserRolePeerMapper {
    long countByExample(SystemUserRolePeerExample example);

    int deleteByExample(SystemUserRolePeerExample example);

    int deleteByPrimaryKey(Integer userRoleId);

    int insert(SystemUserRolePeer record);

    int insertSelective(SystemUserRolePeer record);

    List<SystemUserRolePeer> selectByExample(SystemUserRolePeerExample example);

    public List<SystemUserRolePeer> getUserRoles(SystemUserRolePeer rolePeer);

    public List<SystemUserRolePeer> selectRoleListByAccountId(@Param("accountId") Integer accountId);

    public SystemUserRolePeer selectByPrimaryKey(@Param("userRoleId")Integer userRoleId);

    int updateByExampleSelective(@Param("record") SystemUserRolePeer record, @Param("example") SystemUserRolePeerExample example);

    int updateByExample(@Param("record") SystemUserRolePeer record, @Param("example") SystemUserRolePeerExample example);

    int updateByPrimaryKeySelective(SystemUserRolePeer record);

    int updateByPrimaryKey(SystemUserRolePeer record);
}